<?php
/*
 * @author eBIZ Team <dev@jungo.com.cn>
 * @copyright  Copyright (c) , ShenZhen JunGO Technology Co., Ltd. All rights reserved.
 * @license  Commercial authorization, unauthorized use and modification are prohibited
 * @url www.jungo.com.cn
 */

namespace ckeeper\services\impl;


use ckeeper\dao\ManagerDao;
use ckeeper\entity\ManagerEntity;
use ckeeper\services\ManagerService;
use Selibra\Di\Annotations\Autowired;

/**
 * 管理员管理实现类
 * Class ManagerServiceImpl
 * @package ckeeper\services\impl
 */
class ManagerServiceImpl implements ManagerService
{

    /**
     * 管理员数据DAO
     * @var ManagerDao
     */
    #[Autowired]
    protected ManagerDao $managerDao;

    /**
     * @param string $keyword
     * @return ManagerEntity[]
     */
    public function searchManager(string $keyword = '')
    {
        // TODO: Implement searchManager() method.
    }

    /**
     * 创建一个新的管理员账户
     * @param ManagerEntity $managerEntity
     * @return ManagerEntity
     */
    public function createManager(ManagerEntity $managerEntity)
    {
        // TODO: Implement createManager() method.
    }

    /**
     * 更新管理员账户信息
     * @param int $id
     * @param array $updateData
     * @return mixed
     */
    public function updateManager(int $id, array $updateData)
    {
        // TODO: Implement updateManager() method.
    }

    /**
     * 通过用户名获取管理员账户信息
     * @param string $username
     * @return ManagerEntity
     */
    public function getManagerByUsername(string $username)
    {
        // TODO: Implement getManagerByUsername() method.
    }

    /**
     * 根据ID列表删除管理员(批量删除)
     * @param array $ids
     * @return mixed
     */
    public function deleteManagerByIds(array $ids)
    {
        // TODO: Implement deleteManagerByIds() method.
    }
}
